package site.kitcheng.springboottest.infra.config.minio;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * ClassName: MinioPropertiesConfig
 * Package: com.learn.springboot3.config
 * Description:
 *
 * @Author jiangcheng
 * @Create 2024/9/24 10:21
 * @Version 1.0
 */

@Component
@ConfigurationProperties(prefix = "minio")
public class MinioPropertiesConfig {

    /** 客户端连接到 MinIO 服务器的 URL */
    private String endpoint;

    /** accessKey */
    private String accessKey;

    /** secretKey */
    private String secretKey;

    /** #存储桶名称 */
    private  String bucketName;

    /** #访问域名 */
    private  String publicNetwork;

    public String getPublicNetwork() {
        return publicNetwork;
    }

    public void setPublicNetwork(String publicNetwork) {
        this.publicNetwork = publicNetwork;
    }

    public String getEndpoint() {
        return endpoint;
    }

    public void setEndpoint(String endpoint) {
        this.endpoint = endpoint;
    }

    public String getAccessKey() {
        return accessKey;
    }

    public void setAccessKey(String accessKey) {
        this.accessKey = accessKey;
    }

    public String getSecretKey() {
        return secretKey;
    }

    public void setSecretKey(String secretKey) {
        this.secretKey = secretKey;
    }

    public String getBucketName() {
        return bucketName;
    }

    public void setBucketName(String bucketName) {
        this.bucketName = bucketName;
    }
}
